package com.codeyang.untils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 描述: describe
 *
 * @author CodeYang_Site
 * @version 2021/6/1 9:58
 */
@Configuration
public class IDGenerate {


    @Bean
    public Snowflake snowflake(){
    return IdUtil.createSnowflake(0,0);
    }
}
